/** 该文件仅存放演员模块相关的接口API */
import myaxios from "../MyAxios";
// 引入路径前缀
import BASEURL from "../BaseUrl";
const { MACURL } = BASEURL;

const newarrivalsApi = {
  // 查询全部
  queryAll() {
    return myaxios.get(MACURL + "/newarrivals");
  },
  // pid查询
  queryById(params) {
    return myaxios.get(MACURL + "/newarrivals/query", params);
  },
  // 通过leixing模糊查询
  queryAllByName(params) {
    return myaxios.post(MACURL + "/newarrivals/title", params);
  },
  add(params) {
    return myaxios.post(MACURL + "/newarrivals/add", params);
  },
  delete(params) {
    return myaxios.post(MACURL + "/newarrivals/del", params);
  },
  update(params) {
    return myaxios.post(MACURL + "/newarrivals/put", params);
  },
};

export default newarrivalsApi;
